package com.gmail.liulijuan.UI;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JToolBar;
import javax.swing.JButton;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JScrollPane;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class BaseList3 extends JPanel {
	protected JTable table;
	protected JButton button_add;
	protected JButton button_update;
	protected JButton button_delete;
	protected JButton button_inquire;

	/**
	 * Create the panel.
	 */
	public BaseList3() {
		setLayout(new BorderLayout(0, 0));
		
		JToolBar toolBar = new JToolBar();
		add(toolBar, BorderLayout.NORTH);
		
		button_add = new JButton("\u589E\u52A0");
		
		toolBar.add(button_add);
		
		button_delete = new JButton("\u5220\u9664");
		toolBar.add(button_delete);
		
		button_update = new JButton("\u4FEE\u6539");
		
		toolBar.add(button_update);
		
		button_inquire = new JButton("\u67E5\u627E");
		toolBar.add(button_inquire);
		
		JScrollPane scrollPane = new JScrollPane();
		add(scrollPane, BorderLayout.CENTER);
		
		table = new JTable();


		scrollPane.setViewportView(table);

	}

}
